import type {DefaultResult, RoleVO} from "@/apis/types";
import request from "@/utils/request/index"


export enum RoleApis{
    roleList="/core/role",
}

export const ROLE_LIST = ():Promise<DefaultResult<Array<RoleVO>>> =>{
    return request.get<DefaultResult<Array<RoleVO>>>({
        url: RoleApis.roleList
    })
}
